package com.czl.module_service.event

import com.czl.base.data.bean.tengyun.RoomListBean
import com.czl.base.data.bean.tengyun.SortBean
import com.czl.base.data.bean.tengyun.StorehouseBean
import com.jeremyliao.liveeventbus.core.LiveEvent

/**
 * @author by xubin,
 * @date on 2022/1/21.
 * PS: Not easy to write code, please indicate.
 */
data class SortBeanEvent(val sort: SortBean?) : LiveEvent
data class StockWarnBeanEvent(val stockWarnBeanList: List<StorehouseBean.StockWarnBean>?) :
    LiveEvent

data class RoomListEvent(val roomList: List<RoomListBean>?) :
    LiveEvent

data class ReceiveAddEvent(val changePosition: Boolean = true, val receiveId: Int? = null) :
    LiveEvent

data class ReceiveHomeEvent(val receiveId: Int? = null) :
    LiveEvent

data class BorrowAddEvent(val changePosition: Boolean = true, val borrowId: Int? = null) :
    LiveEvent

data class BorrowHomeEvent(val receiveId: Int? = null) :
    LiveEvent

data class AllocateAddEvent(val allocateId: Int? = null) :
    LiveEvent

data class AllocateHomeEvent(val receiveId: Int? = null) :
    LiveEvent

data class StorehouseHomeScanEvent(val sortBean: SortBean) :
    LiveEvent

data class DamageRegisBackEvent(val sortBean: SortBean) :
    LiveEvent

data class StorehouseHomeScanBackEvent(val unit: Unit? = null) :
    LiveEvent